<?php
if (empty($_REQUEST['to'])) {
	echo 1;
	exit();
}
$to = $_REQUEST['to'];
$sSubject = 'nosubject';
$sBody = 'notext';
$from = 'jsc@minder.minibird.jp';
if (!empty($_REQUEST['subject'])) {
	$subject = $_REQUEST['subject'];
}
if (!empty($_REQUEST['text'])) {
	$sBody = $_REQUEST['text'];
}
$result = mb_send_mail($to, $sSubject, $sBody);
if (!$result) {
	echo 2;
	exit();
}
echo 0;
exit();